/**
 * 
 */
package com.wgo.precise.client.ui.view.editor.dummy;

import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.swt.graphics.Image;


import com.wgo.bpot.server.persist.Persistent;
import com.wgo.precise.client.ui.model.facade.ILabelProviderItem;
import com.wgo.precise.client.ui.model.facade.IModelPersistable;

/**
 * @author petterei
 *
 * @version $Id: DummyItem.java,v 1.3 2006-01-31 22:40:30 petterei Exp $
 */
public class DummyItem implements IAdaptable, ILabelProviderItem, IModelPersistable {
	private Long identifier = null;
	private String title = null;
	private String description = null;
	private Class<? extends Persistent> domainType = null;
	
	public DummyItem(Long identifier, Class<? extends Persistent> domainType, String title, String description) {
		this.identifier = identifier;
		this.title = title;
		this.description = description;
		this.domainType = domainType;
	}
	public Object getAdapter (@SuppressWarnings("unused") Class adapter) {
		return null;
	}
	public Image getImage() {
		return null;
	}

	public String getText() {
		return title;
	}

	public String getSimpleName() {
		return title;
	}
	public String getToolTipText() {
		String string = "";
		if (null != identifier) {
			string += "ID: " + identifier;
		}
		return description + " [" + string + "]";
	}

	public Persistent getDomainModelObject() {
		return null;
	}
	
	/**
	 * @see com.wgo.precise.client.ui.model.facade.IModelPersistable#getDomainObjectType()
	 */
	public Class<? extends Persistent> getDomainObjectType() {
		return domainType;
	}
	public Long getIdentifier() {
		return identifier;
	}
	public Long getConceptId() {
		return null;
	}
	
}
